<html ng-app="diandanbao" class="ng-scope">
<head>
    <style type="text/css">@charset "UTF-8";[ng\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\:form{display:block;}</style>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta content="telephone=no" name="format-detection">
    <meta content="production" name="env">
    <title>{$setting['title']}</title>
    <link data-turbolinks-track="true" href="{RES}/mobile/{php echo $this->cur_tpl}/assets/diandanbao/weixin.css?v=1" media="all" rel="stylesheet">
    <style type="text/css">@media screen{.smnoscreen {display:none}} @media print{.smnoprint{display:none}}</style>
    <style>
        .am-table span {
            font-size: 12px;
            line-height: 20px;
        }
        .am-table th,td{
            font-size: 12px;
            line-height: 20px;
        }
        .ddb-secondary-nav-header .filter-switch {
            margin: auto;
            height: 30px;
            display: table;
            border-radius: 5px;
            border: 1px solid #3190e8;
            color: #3190e8;
            width: 100%;
            line-height: 28px
        }
        .ddb-secondary-nav-header .filter-switch .filter-tab.active {
            background-color: #3190e8;
        }
        #contact-us-page .user-nav-section .user-nav-item i, #coupon-nav-page .user-nav-section .user-nav-item i, #user-profile-page .user-nav-section .user-nav-item i{
            font-size: 16px;
        }
    </style>
    <style>

        #user-profile-page .user-nav-section .user-nav-item i{
            font-size: 16px;
        }

        .text, .filter-tab{
            font-size: 14px;
        }
    </style>
</head>
<body>
<div style="height: 100%;" class="ng-scope">
    <div class="ddb-nav-header ng-scope">
        <div class="nav-left-item"  onclick="javascript :history.back(-1);"><i class="fa fa-angle-left"></i></div>
        <div class="header-title ng-binding">营业额</div>
    </div>
    <div id="user-profile-page">
        <div id="top-user-avatar">
        <div class="user-nav-section">
            <div class="user-nav-item" onclick="jump(1);">
                <a href="#/wechat_share_records">
                     <i class="fa fa-yen">今日</i>
                    <div class="text">
                        {$today_order_price}{$setting['currency']}
                    </div>
                </a>
            </div>
            <div class="user-nav-item" onclick="jump(2);">
                <a href="#/wechat_share_records">
                    <i class="fa fa-money">本月</i>
                    <div class="text">{$nowmonth_order_price}{$setting['currency']}</div>
                </a>
            </div>
            <div class="user-nav-item" onclick="jump(3);">
                <a href="#/addresses">
                    <i class="fa fa-money">上月</i>
                    <div class="text">{$lastmonth_order_price}{$setting['currency']}</div>
                </a>
            </div>
            <div class="user-nav-item">
                <a href="{php echo $this->createMobileUrl('marketinglog', array('op' => 'shop', 'storeid' => $storeid), true)}">
                    <i class="fa">打款记录</i>
                    <div class="text">查看</div>
                </a>
            </div>
        </div>
        </div>
    </div>
    <div class="ddb-secondary-nav-header orders-index-secondary-nav ng-scope" style="position: relative;top:0px">
        <div class="filter-switch">
            <div class="filter-tab{if $level==1} active{/if}" onclick="jump(1);">
                今日
            </div>
            <div class="filter-tab{if $level==2} active{/if}" onclick="jump(2);">
                本月
            </div>
            <div class="filter-tab{if $level==3} active{/if}" onclick="jump(3);">
                上月
            </div>
        </div>
    </div>
    <div class="space-12"></div>
    <div class="orders-index-page main-view ng-scope" id="delivery-orders-index" style="padding-top: 0px;">
        <div class="order-item section ng-scope">
            <div class="list-item">
    <style>
        table{background-color:transparent}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>thead>tr>th,.table>tbody>tr>th,.table>tfoot>tr>th,.table>thead>tr>td,.table>tbody>tr>td,.table>tfoot>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>th,.table>caption+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>td,.table>thead:first-child>tr:first-child>td{border-top:1}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>thead>tr>th,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>tbody>tr>td,.table-condensed>tfoot>tr>td{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>tbody>tr>td,.table-bordered>tfoot>tr>td{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>thead>tr>td{border-bottom-width:2px}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>thead>tr>td.active,.table>tbody>tr>td.active,.table>tfoot>tr>td.active,.table>thead>tr>th.active,.table>tbody>tr>th.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>tbody>tr.active>td,.table>tfoot>tr.active>td,.table>thead>tr.active>th,.table>tbody>tr.active>th,.table>tfoot>tr.active>th{background-color:#f5f5f5}.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover,.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr.active:hover>th{background-color:#e8e8e8}.table>thead>tr>td.success,.table>tbody>tr>td.success,.table>tfoot>tr>td.success,.table>thead>tr>th.success,.table>tbody>tr>th.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>tbody>tr.success>td,.table>tfoot>tr.success>td,.table>thead>tr.success>th,.table>tbody>tr.success>th,.table>tfoot>tr.success>th{background-color:#dff0d8}.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover,.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr.success:hover>th{background-color:#d0e9c6}.table>thead>tr>td.info,.table>tbody>tr>td.info,.table>tfoot>tr>td.info,.table>thead>tr>th.info,.table>tbody>tr>th.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>tbody>tr.info>td,.table>tfoot>tr.info>td,.table>thead>tr.info>th,.table>tbody>tr.info>th,.table>tfoot>tr.info>th{background-color:#d9edf7}.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover,.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr.info:hover>th{background-color:#c4e3f3}.table>thead>tr>td.warning,.table>tbody>tr>td.warning,.table>tfoot>tr>td.warning,.table>thead>tr>th.warning,.table>tbody>tr>th.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>tbody>tr.warning>td,.table>tfoot>tr.warning>td,.table>thead>tr.warning>th,.table>tbody>tr.warning>th,.table>tfoot>tr.warning>th{background-color:#fcf8e3}.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover,.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr.warning:hover>th{background-color:#faf2cc}.table>thead>tr>td.danger,.table>tbody>tr>td.danger,.table>tfoot>tr>td.danger,.table>thead>tr>th.danger,.table>tbody>tr>th.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>tbody>tr.danger>td,.table>tfoot>tr.danger>td,.table>thead>tr.danger>th,.table>tbody>tr.danger>th,.table>tfoot>tr.danger>th{background-color:#f2dede}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover,.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr.danger:hover>th{background-color:#ebcccc}
    </style>
                <table class="table table-hover table-bordered table-text-center am-table">
                    <thead>
                    <tr>
                        <th>时间</th>
                        <th>结算金额</th>
                        <th>订单数</th>
                        <th>余额支付</th>
                        <th>微信支付</th>
                        <th>支付宝</th>
                        <th>现金支付</th>
                    </tr>
                    </thead>
                    <tfoot>
                    <tr>
                        <th>总计</th>
                        <th>{php echo sprintf('%.2f', $footer_totalprice);}</th>
                        <th>{php echo intval($footer_totalcount);} 单</th>
                        <th>{php echo sprintf('%.2f', $footer_totalprice1);}</th>
                        <th>{php echo sprintf('%.2f', $footer_totalprice2);}</th>
                        <th>{php echo sprintf('%.2f', $footer_totalprice4);}</th>
                        <th>{php echo sprintf('%.2f', $footer_totalprice3);}</th>
                    </tr>
                    </tfoot>
                    <tbody>
                    {loop $return $k $dca}
                    <tr>
                        <th>{$k}</th>
                        <td>{php echo sprintf('%.2f', $dca['totalprice']);}</td>
                        <td>{php echo intval($dca['count']);} 单</td>
                        <td>{php echo sprintf('%.2f', $dca['1']);}</td>
                        <td>{php echo sprintf('%.2f', $dca['2']);}</td>
                        <td>{php echo sprintf('%.2f', $dca['4']);}</td>
                        <td>{php echo sprintf('%.2f', $dca['3']);}</td>
                    </tr>
                    {/loop}
                    </tbody>
                </table>

            </div>
        </div>
    </div>
</div>
<script src="{php echo $this->cur_mobile_path}/script/jquery-1.8.3.min.js"></script>
<script>
    function jump(level) {
        window.location.href = "{php echo $this->createMobileUrl('storestart', array('storeid' => $storeid), true)}" +
                "&level=" + level;
    }
</script>
</body>
</html>